package com.elm.service;

import com.elm.entity.Cart;

import java.sql.SQLException;
import java.util.List;

public interface CartService {
    List<Cart> getCartListByUserId(String userId) throws SQLException;
    List<Cart> getCartListByUserIdAndBusinessId(String userId, int businessId) throws SQLException;

    int saveCart(Cart cart) throws SQLException;

    int updateCart(Cart cart);

    int removeCart(Cart cart) throws SQLException;
}